﻿using System;
using Syncfusion.Pdf.Parsing;

namespace PdfSdk.Pdf
{
    public class PdfLoadedStyledFieldWrapper : PdfLoadedFieldWrapper
    {
        public PdfLoadedStyledFieldWrapper(PdfLoadedStyledField obj) : base(obj)
        {
        }

        public string FontName(string fontString, out float height)
        {
            object[] parameters = new object[] { fontString, null };
            var result = InvokeMethod("FontName", parameters);
            height = Convert.ToSingle(parameters[1]);
            return result?.ToString();
        }
    }
}
